﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './user/Login',
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'smile',
    component: './Welcome',
  },
  {
    path: '/system',
    name: 'system',
    key: '1',
    icon: 'SettingOutlined',
    access: 'normalRouteFilter',
    routes: [
      {
        name: 'user',
        key: '7',
        path: '/system/user',
        component: './system/user',
        access: 'normalRouteFilter'
      },
      {
        name: 'role',
        key: '2',
        path: '/system/role',
        component: './system/Role',
        access: 'normalRouteFilter'
      },
      {
        name: 'authority',
        key: '3',
        path: '/system/authority',
        component: './system/Authority',
        access: 'normalRouteFilter'
      },
      {
        name: 'package',
        key: '13',
        path: '/system/package',
        component: './system/Package',
        access: 'normalRouteFilter'
      },
      {
        name: 'pageImg',
        key: '15',
        path: '/system/pageImg',
        component: './system/PageImg',
        access: 'normalRouteFilter'
      }
    ]
  },
  {
    path: '/business',
    name: 'business',
    key: '4',
    icon: 'CustomerServiceOutlined',
    access: 'normalRouteFilter',
    routes: [
      {
        name: 'client',
        path: '/business/client',
        component: './Business/Client',
        key: '5'
      },
      {
        name: 'contract',
        path: '/business/contract',
        key: '6',
        component: './Business/Contract',
      },
      {
        name: 'equipment',
        path: '/business/equipment',
        component: './Equipment',
        access: 'normalRouteFilter',
        key: '14',
      }
    ]
  },
  {
    path: '/resource',
    name: 'resource',
    key: '8',
    icon: 'StarOutlined',
    access: 'normalRouteFilter',
    routes: [
      {
        name: 'district',
        key: '9',
        path: '/resource/district',
        component: './resource/District',
        access: 'normalRouteFilter'
      },
      {
        name: 'subDistrict',
        key: '10',
        path: '/resource/subDistrict',
        component: './resource/SubDistrict',
        access: 'normalRouteFilter'
      },
      {
        name: 'community',
        key: '11',
        path: '/resource/community',
        component: './resource/Community',
        access: 'normalRouteFilter'
      },
      {
        name: 'address',
        key: '12',
        path: '/resource/address',
        component: './resource/Address',
        access: 'normalRouteFilter'
      },
    ]
  },
  {
    path: '/network',
    name: 'network',
    key: '16',
    icon: 'GlobalOutlined',
    access: 'normalRouteFilter',
    routes: [
      {
        name: 'host',
        key: '17',
        path: '/network/host',
        component: './Network/Host',
        access: 'normalRouteFilter'
      },
      {
        name: 'nas',
        path: '/network/nas',
        key: '18',
        component: './Network/NAS',
        access: 'normalRouteFilter'
      },

    ]
  },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    component: './404',
  },
];
